package com.kadron.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "k_app_image")
public class KApplicationImage extends KImage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5724109259717501052L;

	protected long applicationId;
	
	public KApplicationImage() {
		super();
	}
	
	public KApplicationImage(long applicationId) {
		super();
		this.applicationId = applicationId;
	}

	@Column(name = "a_id", nullable = false)
	public long getApplicationId() {
		return applicationId;
	}

	public void setApplicationId(long applicationId) {
		this.applicationId = applicationId;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		KApplicationImage other = (KApplicationImage) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
